#ifndef H_RCGD_NAVCMD_H
#define H_RCGD_NAVCMD_H


#define OPER_STATUS_Q                                            1
#define OPER_STATUS_P                                            2
#define OPER_STATUS_DUAL_Q                                       3
#define OPER_STATUS_SYNC_Q                                       4
#define OPER_ERROR_Q                                             5
#define OPER_LOG_Q                                               6
#define OPER_LOG_P                                               7
#define OPER_LOG_CLEAR_                                          8
#define OPER_LOG_COUNT_Q                                         9
#define OPER_LOG_TEST_P                                         10
#define OPER_LOG_ALL_Q                                          11
#define OPER_TLOG_Q                                             12
#define OPER_TLOG_CLEAR_                                        13
#define OPER_TLOG_COUNT_Q                                       14
#define OPER_TLOG_TEST_P                                        15
#define OPER_TLOG_ALL_Q                                         16
#define OPER_MODE_P                                             17
#define OPER_DUAL_ACTIVE_P                                      18
#define OPER_MANUAL_Q                                           19
#define OPER_MANUAL_P                                           20
#define GPS_TIME_Q                                              21
#define GPS_TIME_P                                              22
#define GPS_DATE_Q                                              23
#define GPS_DATE_P                                              24
#define GPS_TRACK_Q                                             25
#define GPS_TRACK_DOP_Q                                         26
#define GPS_TRACK_SAT_Q                                         27
#define GPS_TRACK_SAT_COUNT_Q                                   28
#define GPS_TRACK_MASK_Q                                        29
#define GPS_TRACK_MASK_P                                        30
#define GPS_TRACK_COUNTER_CLEAR_                                31
#define GPS_POS_Q                                               32
#define GPS_POS_MODE_Q                                          33
#define GPS_POS_CURRENT_Q                                       34
#define GPS_POS_LAST_Q                                          35
#define GPS_POS_HOLD_P                                          36
#define GPS_POS_FIX_Q                                           37
#define GPS_POS_FIX_P                                           38
#define GPS_POS_AVERAGE_Q                                       39
#define GPS_POS_AVERAGE_START_                                  40
#define GPS_POS_AVERAGE_END_                                    41
#define TIME_ZONE_Q                                             42
#define TIME_ZONE_P                                             43
#define TIME_MODE_Q                                             44
#define TIME_MODE_P                                             45
#define TIME_LEAPSECOND_Q                                       46
#define TIME_ADELAY_Q                                           47
#define TIME_ADELAY_P                                           48
#define TIME_CODE_Q                                             49
#define TIME_CODE_P                                             50
#define TIME_RAIM_Q                                             51
#define TIME_RAIM_P                                             52
#define TIME_UTC_Q                                              53
#define TIME_GPS_Q                                              54
#define TIME_RTC_Q                                              55
#define TIME_RTC_P                                              56
#define SYSTEM_SELFTEST_                                        57
#define SYSTEM_SELFTEST_Q                                       58
#define SYSTEM_RESET_                                           59
#define SYSTEM_RESET_P                                          60
#define SYSTEM_COMM_Q                                           61
#define SYSTEM_COMM_BAUD_Q                                      62
#define SYSTEM_COMM_BAUD_P                                      63
#define SYSTEM_FIRMWARE_VERSION_Q                               64
#define SYSTEM_FIRMWARE_UPGRADE_                                65
#define SYSTEM_FIRMWARE_UPGRADE_P                               66
#define SYSTEM_CONFIG_Q                                         67
#define SYSTEM_INFO_Q                                           68
#define SYSTEM_INFO_P                                           69
#define SYSTEM_SN_Q                                             70
#define SYSTEM_SN_P                                             71
#define SYSTEM_FW_VERSION_Q                                     72
#define SYSTEM_VERSION_Q                                        73
#define SYSTEM_REVISION_Q                                       74
#define SYSTEM_REVISION_P                                       75
#define DEV_SIG_Q                                               76
#define DEV_SIG_P                                               77
#define DEV_MEM_Q                                               78
#define DEV_MEM_P                                               79
#define DEV_LSI_P                                               80
#define DEV_CONFIG_DAC_Q                                        81
#define DEV_CONFIG_DAC_P                                        82
#define DEV_CONFIG_GAIN_Q                                       83
#define DEV_CONFIG_GAIN_P                                       84
#define DEV_CONFIG_OCXO_Q                                       85
#define DEV_CONFIG_OCXO_P                                       86
#define DEV_CONFIG_DELAY_Q                                      87
#define DEV_CONFIG_DELAY_P                                      88
#define DEV_CONFIG_E1_ACC_Q                                     89
#define DEV_CONFIG_E1_ACC_P                                     90
#define DEV_CONFIG_E1_JITTER_Q                                  91
#define DEV_CONFIG_E1_JITTER_P                                  92
#define DEV_TEST_Q                                              93
#define DEV_TEST_P                                              94
#define DEV_OFFSET_Q                                            95
#define DEV_OFFSET_P                                            96
#define CONTROL_DAC_Q                                           97
#define CONTROL_DAC_P                                           98
#define CONTROL_MANUAL_Q                                        99
#define CONTROL_MANUAL_P                                       100
#define CONTROL_TGAIN_Q                                        101
#define CONTROL_TGAIN_P                                        102
#define CONTROL_RDAC_Q                                         103
#define CONTROL_RDAC_P                                         104
#define CONTROL_SYNC_                                          105
#define CONTROL_SYNC_P                                         106
#define CONTROL_HOLDOVER_DURATION_Q                            107
#define CONTROL_HOLDOVER_DURATION_P                            108
#define CONTROL_OCXOID_Q                                       109
#define CONTROL_1PPSALM_Q                                      110
#define CONTROL_1PPSALM_RANGE_Q                                111
#define CONTROL_1PPSALM_RANGE_P                                112
#define CONTROL_WARM_RANGE_Q                                   113
#define CONTROL_WARM_RANGE_P                                   114
#define CONTROL_TRACE_Q                                        115
#define CONTROL_TRACE_P                                        116
#define MEM_READ_P                                             117
#define MEM_WRITE_P                                            118
#define TEST_OCXOID_Q                                          119
#define TEST_EB_Q                                              120
#define TEST_VERSION_Q                                         121
#define TEST_OFFSET_P                                          122
#define RECOVERY_OFFSET_Q                                      123
#define CLS_                                                   124
#define HELP_                                                  125
#define DETAIL_                                                126
#define PECL_CHECK_Q                                           127
#define PECL_CHECK_P                                           128
#define PECL_CHECK_STATUS_Q                                    129
#define PRINT_EB_Q                                             130
#define PRINT_EB_P                                             131
#define PRINT_DUAL_Q                                           132
#define PRINT_DUAL_P                                           133
#define PRINT_HOLDOVER_Q                                       134
#define PRINT_HOLDOVER_P                                       135
#define PRINT_DEBUG_Q                                          136
#define PRINT_DEBUG_P                                          137
#define PRINT_ATABLE_                                          138
#define PRINT_ASOLUTION_                                       139
#define HOLDOVER_SOLUTION_                                     140
#define FUPGRADEL_                                             141
#define FUPGRADEM_                                             142
#define FUPGRADET_                                             143
#define FUPGRADEG_                                             144
#define DEBUG_FAIL_Q                                           145
#define DEBUG_FAIL_RTC_P                                       146
#define DEBUG_FAIL_OSC_P                                       147
#define DEBUG_FAIL_POWER_P                                     148
#define TANT_RESET_                                            149
#define TANT_RESET_P                                           150
#define TANT_VERSION_Q                                         151
#define EDBG_Q                                                 152
#define EDBG_P                                                 153
#define ANTENNA_CHECK_Q                                        154
#define ANTENNA_CHECK_P                                        155
#define DBG_RB_                                                156
#define RFT_                                                   157
#define RFS_                                                   158
#define MONITORCMD_P                                           159
#define PWM_P                                                  160
#define EB_PRINT_P                                             161
#define EB_LOCK_P                                              162
#define EB_UNLOCK_P                                            163
#define EB_PSDM_P                                              164
#define EB_SS_P                                                165
#define EB_SL_P                                                166
#define MM_DUMP_P                                              167
#define MM_CRC_P                                               168
#define MM_USAGE_P                                             169
#define REBOOT_                                                170
#define REBOOT_P                                               171



#define NAVICOM_COMMAND_NO	171





#define NAVICOM_COMMAND_SUB_ID_NO	150


typedef struct Navi_cmd_s{
	char	name[11];
	BYTE	id;
	BYTE	qid;
	BYTE	pid;
	BYTE	bro;
	BYTE	son;
} Navi_cmd_;

#endif
